#pragma once

#include "IComponent.h"
#include "ModelNode.h"

class GraphicalComponent : public IComponent
{
public:
	static const HashedString type;
	
	GraphicalComponent( Entity* parent, Pointer<Model>& modelNode );
	~GraphicalComponent();
	
	std::string ToString() const;
	bool ToXML( tinyxml2::XMLPrinter& printer );
	const HashedString& Type();

	Pointer<INode>& getNode();
	void Remove();
protected:
	Pointer<INode> m_modelNode;
};